<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib tagdir="/WEB-INF/tags/" prefix="util" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="core" %>
<util:template titulo="Incluir Site">
    <div class="row">
        <div class="col-md-7 col-md-offset-2">
            <form role="form" method="post" name="form-site" action="intranet/site/confirmar">
                <div class="panel-heading">
                    <h1 class="panel-title"><c:if test="${not empty id}">Editar</c:if><c:if test="${empty id}">Adicionar</c:if> site</h1>
                    </div>
                    <div class="panel-body">
                    <c:if test="${not empty id}">
                        <input class="form-control" type="hidden" name="id" value="${id}">
                    </c:if>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group row">
                                <label for="assunto" class="col-md-2 control-label">Descrição: </label>
                                <div class="col-md-10">
                                    <input type="text" class="form-control" name="descricao" maxlength="50"
                                           placeholder="Descricao" value="${site.descricao}">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="url" class="col-md-2 control-label" maxlength="50" >Url: </label>
                                <div class="col-md-10">
                                    <input type="url" class="form-control" name="url"
                                           placeholder="Informe a URL" value="${site.url}">
                                </div>
                            </div>                
                            <div class="form-group row">
                                <label for="ativo" class="col-md-2 control-label">Tags: </label>
                                <div class="col-md-10">
                                    <input type="text" class="form-control tag" name="tags"
                                           value="${site.tags}">
                                </div>
                                <div class="col-md-9"></div>                              
                            </div>                                          
                        </div>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary">Enviar</button>
                        <a class="btn btn-warning" href="${baseURL}/intranet/site/listar">Voltar</a>
                        <button type="reset" class="btn btn-default">Limpar</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-md-3">
        </div>
    </div>
</util:template>


